/**
 * 
 */
package it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.netgame;

import it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.actions.GenericActionInfo;

import java.util.LinkedList;

/**
 * @author Massimo Canonaco
 *
 */
public class ActionDeposit 
{
	/** */
	private LinkedList<GenericActionInfo> informations;
	
	/** */
	private float actionGuid;
	
	public ActionDeposit()
	{
		informations = new LinkedList<>();
	}
	
	public void push(GenericActionInfo info)
	{
		informations.addLast(info);
	}
	
	public GenericActionInfo pop()
	{
		if(!informations.isEmpty())
			return informations.remove();
		
		return null;
	}

	/**
	 * @return the actionGuid
	 */
	public float getActionGuid() {
		return actionGuid;
	}

	/**
	 * @param actionGuid the actionGuid to set
	 */
	public void setActionGuid(float actionGuid) {
		this.actionGuid = actionGuid;
	}
}
